
<template>
	<Loading :isLoading="configStore.getLoading">
		<Card>
			<template #title>配置邮箱信息</template>
			<template #content>
				<EmailForm />
			</template>
		</Card>
	</Loading>
</template>

<script setup>
import { watch, ref, onBeforeMount } from 'vue';
import { Card } from '@/utils/primevue'
import EmailForm from './components/EmailForm.vue'
import Loading from '@/components/Loading/Loading-component'
import useConfigStore from '@/stores/config';

const configStore = useConfigStore()

// 写到自组件无法加载loading
onBeforeMount(() => {
  configStore.queryMailInfo()
})


</script>

<style lang="less" scoped>
</style>
